using UnityEngine;

public class BCWAnimatorOffset : MonoBehaviour
{
	public string animatiorStartName = string.Empty;

	[Range(0f, 1f)]
	public float startPoint;

	public bool randomizeStartFrame;

	private Animator anim;

	private void Awake()
	{
		anim = GetComponent<Animator>();
		if (randomizeStartFrame)
		{
			startPoint = Random.Range(0f, 1f);
		}
		anim.Play(animatiorStartName, -1, startPoint);
	}
}
